projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747be0f
)
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
author
Timm Bäder
<mail@baedert.org>
Wed, 11 Oct 2017 06:06:33 +0000
(08:06 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Mon, 16 Jul 2018 13:43:43 +0000
(15:43 +0200)
The > 1 meant it only emits the signal for -2/+2 steps.
gtk/gtkeventcontrollerscroll.c
patch
|
blob
|
history
diff --git
a/gtk/gtkeventcontrollerscroll.c
b/gtk/gtkeventcontrollerscroll.c
index 61f916782cd6665bf553c82ff240a016764167d7..57991db1ae93798c8c1a9c43d29192bde7d48e65 100644
(file)
--- a/
gtk/gtkeventcontrollerscroll.c
+++ b/
gtk/gtkeventcontrollerscroll.c
@@
-239,14
+239,14
@@
gtk_event_controller_scroll_handle_event (GtkEventController *controller,
scroll->cur_dy += dy;
dx = dy = 0;
- if (ABS (scroll->cur_dx) > 1)
+ if (ABS (scroll->cur_dx) >
=
1)
{
steps = trunc (scroll->cur_dx);
scroll->cur_dx -= steps;
dx = steps;
}
- if (ABS (scroll->cur_dy) > 1)
+ if (ABS (scroll->cur_dy) >
=
1)
{
steps = trunc (scroll->cur_dy);
scroll->cur_dy -= steps;